
/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"2439B240-97E8-4B0C-8A27-81EF66FBD3AC"}
 */
function onShow(firstShow, event) {
	buscarPendientes()
}

/**
 * @AllowToRunInFind
 *
 * @properties={typeid:24,uuid:"076C6580-7511-4969-81DA-B5D27B4E9512"}
 */
function buscarPendientes(){
	controller.find()
	
	fac_estado = 10
	
	controller.search()
}
/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"58000883-7709-4374-83B0-D89450302323"}
 */
function arreglar(event) {
	var $win = application.createWindow('FACTURA_ARREGLA',JSWindow.MODAL_DIALOG)
	$win.title = 'Arreglar Factura'
	forms.factura_cab_arreglo_win.controller.show($win)
}
